﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FWMS.Service
{
    class Rukuguanli_chanpinService
    {
        //产品全部查询
        public Bean.Rukuguanli_chanpinBean rukuguanli_chanpin_ServiceSelect()
        {
            DAO.Rukuguanli_chanpinDao chanpindao = new DAO.Rukuguanli_chanpinDao();
            return chanpindao.rukuguanli_chanpinDaoSelect();
        }
        //产品入库条件查询
        public Bean.Rukuguanli_chanpinBean rukuguanli_chanpin_ServiceSelectContation(Bean.Rukuguanli_chanpinBean bean)
        {
            DAO.Rukuguanli_chanpinDao rukuguanli_chanpin_dao = new DAO.Rukuguanli_chanpinDao();
            return rukuguanli_chanpin_dao.rukuguanli_chanpinDaoSelectCondition(bean);
        }
        //产品入库条件查询 !!库存管理用
    public Bean.Rukuguanli_chanpinBean rukuguanli_chanpin_kucunguanliServiceSelectContation(Bean.Rukuguanli_chanpinBean bean)
        {
            DAO.Rukuguanli_chanpinDao rukuguanlidao = new DAO.Rukuguanli_chanpinDao();
            return rukuguanlidao.rukuguanli_chanpin_kucunuseDaoSelectCondition(bean);
        }

        //产品入库添加
        public bool rukuguanli_chanpinServiceAdd(Bean.Rukuguanli_chanpinBean bean)
        {
            DAO.Rukuguanli_chanpinDao ruku_chanpin_dao = new DAO.Rukuguanli_chanpinDao();
            return ruku_chanpin_dao.rukuguanli_chanpinDaoAdd(bean);
        }

        //产品入库添加
        public bool rukuguanli_chanpinkucundatechuliadd(Bean.Rukuguanli_chanpinBean bean)
        {
            DAO.Rukuguanli_chanpinDao ruku_chanpin_dao = new DAO.Rukuguanli_chanpinDao();
            return ruku_chanpin_dao.kucunguanli_insertormodifyadd(bean);
        }

        //产品入库添减
        public bool rukuguanli_chanpinkucundatechulijian(Bean.Rukuguanli_chanpinBean bean)
        {
            DAO.Rukuguanli_chanpinDao ruku_chanpin_dao = new DAO.Rukuguanli_chanpinDao();
            return ruku_chanpin_dao.kucunguanli_insertormodifyjian(bean);
        }

        //产品入库时间条件查询
        public Bean.Rukuguanli_chanpinBean rukuguanli_chanpindate_ServiceSelectContation(Bean.Rukuguanli_chanpinBean bean)
        {
            DAO.Rukuguanli_chanpinDao rukuguanli_chanpin_dao = new DAO.Rukuguanli_chanpinDao();
            return rukuguanli_chanpin_dao.rukuguanli_chanpindateDaoSelectCondition(bean);
        }


    }
}
